#include "HandleMachine.h"
#include "AbstructStatus.h"
#include "Status1.h"

CHandleMachine::CHandleMachine()
: m_pStatus(0)
{
	SetStatus( new CStatus1() );
}

CHandleMachine::~CHandleMachine()
{

}

bool CHandleMachine::SetStatus( CAbstructStatus* status )
{
	if ( 0 == status )
		return false;

	m_pStatus = status;
	return true;
}

bool CHandleMachine::Request()
{
	m_pStatus->Handle( this );
	return true;
}

